<?php
//联合类型
function say(string|int $name)
{
    var_dump($name);
}
say(-123);